package common.constant;


/**
 * Description: 币本位合约常量
 *
 * @author shaw
 * @date 9/19/22 3:40 PM
 */
public interface BrokerConstants {


    interface CurrencyType{
        String Usdt="usdt";
        String BTC="btc";
        String ET="et";
    }

    interface Symbol{
        String ET_USDT="et_usdt";

    }



    interface BrokerAuditStatus {
        Integer APPLYING = 0; // 申请中
        Integer APPROVED = 1; // 审核通过
        Integer FAILED = 2;  // 审核不通过
    }

    interface RedisKey {
        String REPEAT_KEY_SUF = "broker:repeat:";
        String ASSETS_REPEAT_KEY_SUF = "broker:assets:withdraw:repeat"; // 资产提现防重复提交key

    }

    /**
     * 通用状态字段
     */
    interface State {
        Integer ENABLE = 1;// 可用
        Integer DISABLE = 0;// 禁用
    }

    /**
     * 提现
     */
    interface Operation {
        Integer SETTLED = 95;// 提现资金行为

    }

    // 最大邀请码的数量
    Integer MAX_INVITATION_COUNT = 30;

    interface InvitationType{
        /**
         * 现货返佣
         */
        Integer SPOT_INVITER = 1;
        /**
         * 现货返现
         */
        Integer SPOT_INVITEE = 2;
        /**
         * 合约返佣
         */
        Integer SWAP_INVITER = 3;
        /**
         * 合约返现
         */
        Integer SWAP_INVITEE = 4;
    }

    interface Socket{
        String CONFIG = "broker:swap:socket:config:symbol:";// socket查询交易对配置
    }


    interface Vip{
        String V0 = "V0";// socket查询交易对配置
    }

    // 常规渠道ID
    Long NORMAL_CHANNEL_ID = 0L;

    // 常规渠道
    String NORMAL_CHANNEL = "常规渠道";

    // 代理商审核未通过
    Integer SMS_TYPE_REJECT = 70;
    // 代理商审核通过
    Integer SMS_TYPE_PASS = 71;

}
